package com.test.fundible;

import android.text.TextUtils;

import com.google.gson.Gson;

import org.json.JSONObject;

public class Othe_fundiblersInfo {

    private static class Inner_fundible {
        private static Othe_fundiblersInfo instance_fundible = new Othe_fundiblersInfo();
    }

    private Othe_fundiblersInfo(){}

    public static Othe_fundiblersInfo getInstance_fundible(){
        return Inner_fundible.instance_fundible;
    }

    public static void parse_fundible(JSONObject objJson){
        Inner_fundible.instance_fundible = new Gson().fromJson(objJson.toString(), Othe_fundiblersInfo.class);
    }

    //还款链接，获取后置空
    private String rpPath;
    //发送验证码响应参数，获取后置空
    private JSONObject sendOtpCodeJson;
    //图片上传后返回的链接，获取后置空
    private String imgPath;

    //法语区绑卡时返回的运营商
    private String channel;
    //法语区绑卡时返回的 是否需要绑定运营商Flag
    private String addBindFlag;

    public String vX8r="";
    public String zgpM="";
    public String zl0s="";
    public String r8TN="";
    public String phd8="";
    public String eZz3="";
    public String yvwi="";

    public String getRpPath_fundible() {
        if (TextUtils.isEmpty(rpPath)) return "";
        String result = rpPath;
        rpPath = "";
        return result;
    }

    public JSONObject getSendOtpCodeJson_fundible() {
        JSONObject result = sendOtpCodeJson;
        sendOtpCodeJson = null;
        return result;
    }

    public String getImgPath_fundible() {
        if (TextUtils.isEmpty(imgPath)) return "";
        String resulet = imgPath;
        imgPath = "";
        return resulet;
    }

    public void setRpPath_fundible(String rpPath) {
        this.rpPath = rpPath;
    }

    public void setSendOtpCodeJson_fundible(JSONObject sendOtpCodeJson) {
        this.sendOtpCodeJson = sendOtpCodeJson;
    }

    public void setImgPath_fundible(String imgPath) {
        this.imgPath = imgPath;
    }

    public void setChannel_fundible(String channel) {
        this.channel = channel;
    }

    public String getChannel_fundible() {
        if (TextUtils.isEmpty(channel)) return "";
        setvX8r("HGwioaerj");
        return channel;
    }

    public void setAddBindFlag_fundible(String addBindFlag) {
        setPhd8("gwioejr");
        this.addBindFlag = addBindFlag;
    }

    public boolean getAddBindFlag_fundible() {
        if (TextUtils.isEmpty(addBindFlag)) return false;
        if (addBindFlag.equalsIgnoreCase("YES")){
            setYvwi("giwoe");
            addBindFlag = "NO";
            return true;
        }
        return false;
    }

    public void setvX8r(String vX8r) {
        this.vX8r = vX8r;
    }

    public void setZgpM(String zgpM) {
        this.zgpM = zgpM;
    }

    public void setZl0s(String zl0s) {
        this.zl0s = zl0s;
    }

    public void setR8TN(String r8TN) {
        this.r8TN = r8TN;
    }

    public void setPhd8(String phd8) {
        this.phd8 = phd8;
    }

    public void seteZz3(String eZz3) {
        this.eZz3 = eZz3;
    }

    public void setYvwi(String yvwi) {
        this.yvwi = yvwi;
    }
}
